#include <iostream>
using namespace std;

class Sample {
public:
    int v;
    Sample() :  v(0){} 
    Sample(int n) : v(n) {} 
    Sample(const Sample& x) {v=2+x.v;
	}
};

Sample PrintAndDouble(Sample o) {
    cout << o.v;
    o.v = 2 * o.v;
    return o;
} mmjmjk,,

int main() {
    Sample a(5);int b; 
    //Sample b = a; 
    Sample c = PrintAndDouble(b);
    cout << endl;
    cout << c.v << endl;
    Sample d;
    d = a; 
    cout << d.v << endl; 
    return 0;
}
